using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using DAO;
using DTO;

namespace BUS
{
    public class PhieuThueBUS
    {
        public DataTable TimPhieuThue(PhieuThueDTO ptdto)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            return ptdao.TimPhieuThue(ptdto);
        }
        public DataTable TimPhieuThueTheoTenPhong(string tenphong)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            return ptdao.TimPhieuThueTheoTenPhong(tenphong);
        }
        public void Them(PhieuThueDTO ptdto)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            ptdao.Them(ptdto);
        }
        public void Sua(PhieuThueDTO ptdto)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            ptdao.Sua(ptdto);
        }
        public void Xoa(int mapt)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            ptdao.Xoa(mapt);
        }
        public void XoaChiTietPhieuThue(int mapt)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            ptdao.XoaChiTietPhieuThue(mapt);
        }
        public DataTable LayMaxMa()
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            return ptdao.LayMaxMa();
        }
        public void ThemChiTiet(DataTable dt, int mapt)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            ptdao.ThemChiTiet(dt, mapt);
        }
        public DataTable LayBangChiTietPT(int mapt)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            return ptdao.LayBangChiTietPT(mapt);
        }
        public DataTable LayThongTinPhong(string tenphong)
        {
            PhieuThueDAO ptdao = new PhieuThueDAO();
            return ptdao.LayThongTinPhong(tenphong);
        }
    }
}
